package cn.dt.ymcc.feignclient;

import cn.dt.ymcc.doc.CourseDoc;
import cn.dt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",fallbackFactory = SearchsFeignClientFallbackFactory.class)
public interface SearchsFeignClient {
    @PostMapping("/saveCourse")
    JSONResult saveCourse(@RequestBody CourseDoc doc);

    @DeleteMapping("/deleteCourse")
    JSONResult deleteCourse(@RequestBody CourseDoc doc);
}
